<!-- extends表明此页面继承自 base.html 文件 -->
{% extends "base.html" %}
{% load staticfiles %}
<!-- 写入 base.html 中定义的 title -->
{% block title %}
    个人中心
{% endblock title %}
<!-- 写入 base.html 中定义的 content -->
{% block content %}
    <main class="section">
        <div class="column is-full box">
            <div class="column is-full">
                <div class="tabs is-centered is-medium">
                    <ul>
                        <li class="{% if nav_tab == "info" or nav_tab == "" %} is-active {% endif %}">
                            <a href="{% url 'users:info' %}?nav_tab=info">
                                <span>
                                    <strong>
                                        我的资料
                                    </strong>
                                </span>
                            </a>
                        </li>
                        <li class="{% if nav_tab == "myfav_course" %} is-active {% endif %}">
                            <a href="{% url 'users:myfav_course' %}?nav_tab=myfav_course">
                                <span>
                                    <strong>
                                        我收藏的课程
                                    </strong>
                                </span>
                            </a>
                        </li>
                        <li class="{% if nav_tab == "myfavorg" %} is-active {% endif %}">
                            <a href="{% url 'users:myfavorg' %}?nav_tab=myfavorg">
                                <span>
                                    <strong>
                                        我收藏的机构
                                    </strong>
                                </span>
                            </a>
                        </li>
                        <li class="{% if nav_tab == "myfav_teachers" %} is-active {% endif %}">
                            <a href="{% url 'users:myfav_teachers' %}?nav_tab=myfav_teachers">
                                <span>
                                    <strong>
                                        我收藏的讲师
                                    </strong>
                                </span>
                            </a>
                        </li>
                        <li class="{% if nav_tab == "messages" %} is-active {% endif %}">
                            <a href="{% url 'users:messages' %}?nav_tab=messages">
                                <span>
                                    <strong>
                                        我的消息
                                    </strong>
                                </span>
                            </a>
                        </li>

                    </ul>
                </div>
            </div>
        </div>
        {% block content_user %}
        {% endblock %}
    </main>
{% endblock content %}
